<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/3.2.40/vue.global.js"></script>
</head>
<body>
    <div id="app">
        <home>
            <template #ming="info">首页{{info.count}}{{info.msg}}</template>
        </home>
    </div>

    <template id="home">
        <div id="home">home</div>
        <div><slot name="ming" :count="1" :msg="msg">xxx</slot></div>
    </template>
</body>
</html>
<script>
    const app = Vue.createApp({
        components:{
            home:{
                template:'#home',
                data() {
                return {
                    msg:'ming.msg'
                }
            },

            },
        }
    })
    app.mount('#app')
</script>